var sysinfo = require('./controllers/sysinfo');
var content = require('./controllers/content');
var metaFile = require('./controllers/metaFile');
var mateParser = require('./controllers/mateParser');

module.exports.regController = function (app) {
  app.use('/sysinfo', sysinfo);
  app.use('/appuser/sysinfo', sysinfo);
  app.use('/content', content);
  app.use('/appuser/content', content);
  app.use('/mateParser', mateParser);
  app.use('/appuser/mateParser', mateParser);

  if (process.env.NODE_ENV === 'local') {
    app.use('/appuser/metaFile', metaFile);
  }
};